<h1>Update User <?php echo $model->user_name; ?></h1>

<?php $form = $this->beginWidget('CActiveForm', array(
    'id' => 'user_form',
    'enableAjaxValidation' => true,
)); ?>

<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_name'); ?>
    <?php echo $form->textField($model, 'user_name', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_name'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_email'); ?>
    <?php echo $form->textField($model, 'user_email', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_email'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_status'); ?>
    <?php echo $form->textField($model, 'user_status', array('class' => 'form-control',)); ?>
    <?php echo $form->error($model, 'user_status'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_approved'); ?>
    <?php echo $form->textField($model, 'user_approved', array('class' => 'form-control',)); ?>
    <?php echo $form->error($model, 'user_approved'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_nickname'); ?>
    <?php echo $form->textField($model, 'user_nickname', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_nickname'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_sex'); ?>
    <?php echo $form->textField($model, 'user_sex', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_sex'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_address'); ?>
    <?php echo $form->textField($model, 'user_address', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_address'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($model, 'user_tel'); ?>
    <?php echo $form->textField($model, 'user_tel', array('class' => 'form-control', 'size' => 60, 'maxlength' => 128)); ?>
    <?php echo $form->error($model, 'user_tel'); ?>
</div>

<div class="form-group">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary')); ?>
</div>

<?php $this->endWidget(); ?>
